void deletelist(Linklist &L, int i, Elemtype &e)
{
    p = L;
    j = 0;
    while (p && j < i - 1)
    {
        p = p->next;
        ++j;
    }
}
int LocateElem(SeqList L,ElemType e) //从vscode复制故为彩色
{
    for(int i=0; i<L.length;i++)
        if (L.data[i]==e)
        {
            return i+1;
        }
        return 0;
}